<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script>
      /*

             */

      const obj = { name: 'gg', age: 16, gender: '男' };
      /*          let{name,age,gender} = obj
             name, age, gender
             ;({name:name,age:age,gender:gender} = obj)
      */

      obj2 = {
        id: {
          name: 'GG',
        },
        disage: {
          age: 11,
        },
      };
      //    let  {name:a, age:b, gender:c,adder:d = 10} = obj
      let {
        id: { name: a },
        disage: { age: bin },
      } = obj2;
      console.log(a,bin);
      // console.log(a,b,c,d);
    </script>
  </head>
  <body></body>
</html>
